home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / dev / www-talk.9301-9306.Z / www-talk.9301-9306 / text0473.txt < prev    next >
Encoding:
Text File  |  1995-04-24  |  1.7 KB  |  69 lines

  1.  
  2. The functionality of the HTTP2 has a lot in common
  3. with NNTP:
  4.  
  5. Commands:
  6.  
  7. HTTP        NNTP
  8.  
  9. GET u        BODY
  10. GET u v        ARTICLE
  11. HEAD        HEAD
  12. PUT        POST or IHAVE
  13.  
  14. These are novel to HTTP:
  15.  
  16. CHECKOUT
  17. CHECKIN
  18. TEXTSEARCH u v
  19.  
  20. Status messages:
  21.  
  22. HTTP        NNTP
  23.  
  24. OK        2xx - command ok
  25. ERROR        4xx - command correct, but could not be completed
  26.         5xx - command unimplemented or incorrect
  27. REDIRECTION
  28. FORWARD
  29.  
  30.     etc.
  31.  
  32. The main technical difference between the protocols is that
  33. NNTP involves a few more round-trips here and there: the server
  34. starts the dialogue with a "200 - server ready" message.
  35.  
  36. The HTTP client just assumes it's ready if it accepted the connection.
  37. This save half a round-trip, but it's doesn't allow servers to
  38. say things like "502 - This server only available from 6pm to 8am".
  39.  
  40. Also, the NNTP IHAVE and POST commands involve more round-trips:
  41.  
  42.    S:      (listens at TCP port 119)
  43.    C:      (requests connection on TCP port 119)
  44.    S:      201 Foobar NNTP server ready (no posting)
  45.    C:      IHAVE <4106@ucbvax.ARPA>
  46.    S:      335 News to me!  <CRLF.CRLF> to end.
  47.    C:      (sends article)
  48.    C:      .
  49.    S:      235 Article transferred successfully.  Thanks.
  50.  
  51. But lots of stuff like error handling, status codes, and the
  52. like have been laid out.
  53.  
  54. I think it would be very useful to include the NNTP NEWNEWS
  55. command in W3. (client sends NEWNEWS <date> and server responds
  56. with a list of articles newer than <date>)
  57.  
  58. The NNTP commands HEAD, BODY, ARTICLE, etc. take a number or
  59. a message-id as an argument. We could extend the syntax to
  60. include URL's as quoted strings.
  61.  
  62. Then we'd add a few commands for format negotiation, locking,
  63. and so on. I think it's a nice clean framework to work in.
  64.  
  65.  
  66. Dan
  67.  
  68.  
  69.